use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Event {
    pub id: i32,
    pub title: String,
    pub content: String,
    pub type_id: i32, //0：其他，1 材料， 2：订单， 3：个人事情
    pub status: i32,  //0:未完成，1:已完成，2:已取消，3：过期
    pub end_time: chrono::NaiveDateTime,
    pub start_time: chrono::NaiveDateTime,

    #[serde(skip)]
    pub created_by: String,
    #[serde(skip)]
    pub modified_by: String,
    #[serde(skip)]
    pub created_at: chrono::NaiveDateTime,
    #[serde(skip)]
    pub modified_at: chrono::NaiveDateTime,
}
